﻿using System;
using GalaSoft.MvvmLight;

namespace com.IronOne.BoardPACWinAppBO.Category
{
    public class CategoryModel: ObservableObject
    {
        /// <summary>
        ///     If -1 means all categories
        /// </summary>
        public int CategoryId { get; set; }

        public string CategoryName { get; set; }
        //public string ShortName { get; set; }
        /// <summary>
        /// The <see cref="ShortName" /> property's name.
        /// </summary>
        public const string ShortNamePropertyName = "ShortName";

        private string _shortName = "";

        /// <summary>
        /// Sets and gets the ShortName property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public string ShortName
        {
            get
            {
                return _shortName;
            }

            set
            {
                if (_shortName == value)
                {
                    return;
                }

                _shortName = value;
                RaisePropertyChanged(ShortNamePropertyName);
            }
        }
        public string Info { get; set; }
        public string Actions { get; set; }
        public DateTime? LastUpdatedDateTime { get; set; }
        public int CategoryOrder { get; set; }
    }
}